var id = getUrlParam('id');
    $.ajax({
        type: "get",
        url: Url + 'logisEx/' + id,
        dataType: 'json',
        crossDomain: true,
        async: false,
        timeout : 20000,
        beforeSend: function (xhr) {

                showDiv()

            // xhr.setRequestHeader("token",storage.getItem('token'));
        },
        success: function (data) {
            hiddenDiv()
            console.log(data)
            var str = '';
            for (var i = 0; i < data.length; i++) {
                var str1 = '';
                var str2 = '';
                if (data[i].logistics_json.result.deliverystatus == 1) {
                    str2 = '<span class="l-m-h-l">在途中</span>';
                } else if (data[i].logistics_json.result.deliverystatus == 2) {
                    str2 = '<span class="l-m-h-l">派送中</span>';
                } else if (data[i].logistics_json.result.deliverystatus == 3) {
                    str2 = '<span class="l-m-h-l">已签收</span>';
                } else if (data[i].logistics_json.result.deliverystatus == 4) {
                    str2 = '<span class="l-m-h-l">派送失败</span>';
                }
                for (var j = 0; j < data[i].img.length; j++) {
                    str1 += '<img  src="' + data[i].img[j].eimg_url + '"/>';
                }
                str += '<div class="logisticsInfoEx-main">' +
                    '<a href="logistics_information.html?id=' + data[i].order_id + '&number=' + data[i].logistics_number + '">' +
                    '<div class="l-m-h clear">' +
                    '<div class="l-m-h-img" ><img src="/static/index/img/logistics-img3.png"/></div>' +
                    str2 +
                    '<span class="l-m-h-r">快寄名称：' + data[i].wuliucompang.name + '</span>' +
                    '</div>' +
                    '<div class="l-m-m">' + data[i].logistics_json.result.list[0].status + '</div>' +
                    '<div  class="l-m-i">' +
                    str1 +
                    '</div>' +
                    '<div  class="l-m-n">共' + data[i].counts + '件商品</div>' +
                    '</a>' +
                    '</div>'
            }
            $(".logisticsInfoEx").html(str)
        },
        error: function (request, status, err) {
            failure(status)
        }
    })

